package com.funcourse.demo.model.repo;

import com.funcourse.demo.model.Quiz;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.core.query.TextCriteria;
import org.springframework.data.mongodb.repository.MongoRepository;

public interface QuestionSuitRepo extends MongoRepository<Quiz,String> {

  Page<Quiz> findByOwnerId(String ownerId,Pageable pageable);

  Page<Quiz> findByOwnerIdAndTag(String ownerId,String tag,Pageable pageable);

  Page<Quiz> findByOwnerId(String ownerId,TextCriteria textCriteria,Pageable pageable);
}
